
"""
    进程的使用
        1、导入模块
        2、创建子进程对象
        3、启动子进程
"""
import time
import multiprocessing


def work1():
    for i in range(5):
        print("work1-----")
        time.sleep(1)


if __name__ == '__main__':
    process1 = multiprocessing.Process(target=work1)
    process1.start()


